package com.cy.mapper;

import com.cy.entity.Courses;
import com.cy.entity.Usercourses;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cy.entity.vo.ChooseCourseVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

import java.util.List;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Aleven
 * @since 2024-12-21
 */
public interface UsercoursesMapper extends BaseMapper<Usercourses> {
    Integer addUserCourses(Usercourses usercourses);

    List<Usercourses> selectCourseRecordByUserId(Integer UserId);

    Integer ifExist(Integer UserId,Integer CourseId);
    Integer exitCourse(Integer UserCourseID);


     Integer countUsercourses(String CourseID);
    //根据用户兴趣推荐课程
    public List<Courses> RecommendByInterest(Integer UserID) ;

}
